import http from '@/service/http'
import type * as T from '@/types/api/index'
const loginApi: T.ILoginApi = {
  login(data) {
    return http.post('/admin/login/managerLogin', data)
  },
  doInfo() {
    return http.get('/admin/user/info')
  },
  doUpdInfo(data) {
    return http.put('/admin/user/edit', data)
  },
  doUpdPass(data) {
    return http.post('/admin/user/password', data)
  },
}

export default loginApi
